import request from '@/utils/request'

// 查询建筑艺术列表
export function listPlayground(query) {
  return request({
    url: '/manage/playground/list',
    method: 'get',
    params: query
  })
}

// 查询建筑艺术详细
export function getPlayground(id) {
  return request({
    url: '/manage/playground/' + id,
    method: 'get'
  })
}

// 新增建筑艺术
export function addPlayground(data) {
  return request({
    url: '/manage/playground',
    method: 'post',
    data: data
  })
}

// 修改建筑艺术
export function updatePlayground(data) {
  return request({
    url: '/manage/playground',
    method: 'put',
    data: data
  })
}

// 删除建筑艺术
export function delPlayground(id) {
  return request({
    url: '/manage/playground/' + id,
    method: 'delete'
  })
}
